package com.atguigu.gmall.scheduled.spring;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author: 86182
 * @Date: 2021/8/22
 * @Time: 22:35
 * @Version:
 */
@Component
public class ScheduledDemo {
    /**
     *
     */
    //@Scheduled(fixedDelay = 10000,initialDelay = 5000)
   // @Scheduled(cron = "0/10 * * * * *")
    public void test(){
        System.out.println("这是spring方法实现了定时任务" + System.currentTimeMillis());
    }
}
